<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: JSONNode类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_j_s_o_n_node-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JSONNode类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>JSON结点类.  
 <a href="class_j_s_o_n_node.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_j_s_o_n_data_8h_source.html">JSONData.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4332edc9aa95b561ddab12f77d000039"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a4332edc9aa95b561ddab12f77d000039">JSONNode</a> ()</td></tr>
<tr class="memdesc:a4332edc9aa95b561ddab12f77d000039"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSONNode构造函数  <a href="#a4332edc9aa95b561ddab12f77d000039">更多...</a><br /></td></tr>
<tr class="separator:a4332edc9aa95b561ddab12f77d000039"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c2284bd6ce621636f9ba02d161b4030"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a6c2284bd6ce621636f9ba02d161b4030">~JSONNode</a> ()</td></tr>
<tr class="memdesc:a6c2284bd6ce621636f9ba02d161b4030"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSONNode析构函数  <a href="#a6c2284bd6ce621636f9ba02d161b4030">更多...</a><br /></td></tr>
<tr class="separator:a6c2284bd6ce621636f9ba02d161b4030"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1244785c8e153352fb0984acec90744"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#ad1244785c8e153352fb0984acec90744">JSONNode</a> (const <a class="el" href="class_j_s_o_n_node.html">JSONNode</a> &amp;node)</td></tr>
<tr class="memdesc:ad1244785c8e153352fb0984acec90744"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSONNode拷贝构造函数  <a href="#ad1244785c8e153352fb0984acec90744">更多...</a><br /></td></tr>
<tr class="separator:ad1244785c8e153352fb0984acec90744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d5507e362f049c46a8cbaf4cf44a730"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a1d5507e362f049c46a8cbaf4cf44a730">serialize</a> (bool fmt=false)</td></tr>
<tr class="memdesc:a1d5507e362f049c46a8cbaf4cf44a730"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回串行化后的字符串  <a href="#a1d5507e362f049c46a8cbaf4cf44a730">更多...</a><br /></td></tr>
<tr class="separator:a1d5507e362f049c46a8cbaf4cf44a730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9ace6642be9ee68f1a06586ae2415da"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#ae9ace6642be9ee68f1a06586ae2415da">hasSubNode</a> (const std::string nodeName)</td></tr>
<tr class="memdesc:ae9ace6642be9ee68f1a06586ae2415da"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否存在nodeName结点  <a href="#ae9ace6642be9ee68f1a06586ae2415da">更多...</a><br /></td></tr>
<tr class="separator:ae9ace6642be9ee68f1a06586ae2415da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87597bba651e9d48861be2178e37926f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a87597bba651e9d48861be2178e37926f">isNullNode</a> ()</td></tr>
<tr class="memdesc:a87597bba651e9d48861be2178e37926f"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断结点是否是NULL结点  <a href="#a87597bba651e9d48861be2178e37926f">更多...</a><br /></td></tr>
<tr class="separator:a87597bba651e9d48861be2178e37926f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f873c32ad08ed4ded611213a46d448"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a53f873c32ad08ed4ded611213a46d448">isArrayNode</a> ()</td></tr>
<tr class="memdesc:a53f873c32ad08ed4ded611213a46d448"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断结点是否是数组型结点  <a href="#a53f873c32ad08ed4ded611213a46d448">更多...</a><br /></td></tr>
<tr class="separator:a53f873c32ad08ed4ded611213a46d448"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d60d2fd3887f4a2b33ebbdd578aeaa8"><td class="memItemLeft" align="right" valign="top">sint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a7d60d2fd3887f4a2b33ebbdd578aeaa8">getArraySize</a> ()</td></tr>
<tr class="memdesc:a7d60d2fd3887f4a2b33ebbdd578aeaa8"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据index获取数组的大小  <a href="#a7d60d2fd3887f4a2b33ebbdd578aeaa8">更多...</a><br /></td></tr>
<tr class="separator:a7d60d2fd3887f4a2b33ebbdd578aeaa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e9e78a2ba11a3fc05120c52ef80aed9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_s_o_n_node.html">JSONNode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a9e9e78a2ba11a3fc05120c52ef80aed9">operator[]</a> (const std::string nodeName)</td></tr>
<tr class="memdesc:a9e9e78a2ba11a3fc05120c52ef80aed9"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据结点名称nodeName获取子结点  <a href="#a9e9e78a2ba11a3fc05120c52ef80aed9">更多...</a><br /></td></tr>
<tr class="separator:a9e9e78a2ba11a3fc05120c52ef80aed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32aa55a0478d6efb0a88d9499467ea75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_s_o_n_node.html">JSONNode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a32aa55a0478d6efb0a88d9499467ea75">operator[]</a> (sint32 index)</td></tr>
<tr class="memdesc:a32aa55a0478d6efb0a88d9499467ea75"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据index获取数组结点里的元素结点  <a href="#a32aa55a0478d6efb0a88d9499467ea75">更多...</a><br /></td></tr>
<tr class="separator:a32aa55a0478d6efb0a88d9499467ea75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d11b8b05d71de2597ac4abf08d219a8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a0d11b8b05d71de2597ac4abf08d219a8">boolValue</a> ()</td></tr>
<tr class="memdesc:a0d11b8b05d71de2597ac4abf08d219a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回结点的布尔值  <a href="#a0d11b8b05d71de2597ac4abf08d219a8">更多...</a><br /></td></tr>
<tr class="separator:a0d11b8b05d71de2597ac4abf08d219a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3cd36a1709f29078d5aa66b5cf21169"><td class="memItemLeft" align="right" valign="top">sint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#af3cd36a1709f29078d5aa66b5cf21169">intValue</a> ()</td></tr>
<tr class="memdesc:af3cd36a1709f29078d5aa66b5cf21169"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回结点的整形值  <a href="#af3cd36a1709f29078d5aa66b5cf21169">更多...</a><br /></td></tr>
<tr class="separator:af3cd36a1709f29078d5aa66b5cf21169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0d2ef99e6a84b764708d136e36fbf80"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#ab0d2ef99e6a84b764708d136e36fbf80">doubleValue</a> ()</td></tr>
<tr class="memdesc:ab0d2ef99e6a84b764708d136e36fbf80"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回结点的浮点值  <a href="#ab0d2ef99e6a84b764708d136e36fbf80">更多...</a><br /></td></tr>
<tr class="separator:ab0d2ef99e6a84b764708d136e36fbf80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43a1eb525136c9c101975ff4212acfce"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a43a1eb525136c9c101975ff4212acfce">stringValue</a> ()</td></tr>
<tr class="memdesc:a43a1eb525136c9c101975ff4212acfce"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回结点的字符串值  <a href="#a43a1eb525136c9c101975ff4212acfce">更多...</a><br /></td></tr>
<tr class="separator:a43a1eb525136c9c101975ff4212acfce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a966e454271c67287b2047d5f43dc96ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a966e454271c67287b2047d5f43dc96ab"></a>
<a class="el" href="class_j_s_o_n_node.html">JSONNode</a>&#160;</td><td class="memItemRight" valign="bottom"><b>nodeValue</b> ()</td></tr>
<tr class="separator:a966e454271c67287b2047d5f43dc96ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb4b70260a7a19410b09458f934dcb5b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a> (const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:adb4b70260a7a19410b09458f934dcb5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入NULL子结点  <a href="#adb4b70260a7a19410b09458f934dcb5b">更多...</a><br /></td></tr>
<tr class="separator:adb4b70260a7a19410b09458f934dcb5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1bfa7eddb776dd256593680f9c923dd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#ab1bfa7eddb776dd256593680f9c923dd">addSubNode</a> (bool value, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:ab1bfa7eddb776dd256593680f9c923dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入布尔值子结点  <a href="#ab1bfa7eddb776dd256593680f9c923dd">更多...</a><br /></td></tr>
<tr class="separator:ab1bfa7eddb776dd256593680f9c923dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38ade0ebf4d5499778ad60b3e0bad194"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a38ade0ebf4d5499778ad60b3e0bad194">addSubNode</a> (int value, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:a38ade0ebf4d5499778ad60b3e0bad194"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入数字值子结点  <a href="#a38ade0ebf4d5499778ad60b3e0bad194">更多...</a><br /></td></tr>
<tr class="separator:a38ade0ebf4d5499778ad60b3e0bad194"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee6fa32de551c2f73eeeeddf5a99ee1f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#aee6fa32de551c2f73eeeeddf5a99ee1f">addSubNode</a> (double value, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:aee6fa32de551c2f73eeeeddf5a99ee1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入数字值子结点  <a href="#aee6fa32de551c2f73eeeeddf5a99ee1f">更多...</a><br /></td></tr>
<tr class="separator:aee6fa32de551c2f73eeeeddf5a99ee1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacf07ddc07c0157aa22433b34a7b60c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#aacf07ddc07c0157aa22433b34a7b60c3">addSubNode</a> (const std::string <a class="el" href="class_j_s_o_n_node.html#a43a1eb525136c9c101975ff4212acfce">stringValue</a>, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:aacf07ddc07c0157aa22433b34a7b60c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入字符串子结点  <a href="#aacf07ddc07c0157aa22433b34a7b60c3">更多...</a><br /></td></tr>
<tr class="separator:aacf07ddc07c0157aa22433b34a7b60c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc37c63365bec0eeee8457084a37e690"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#adc37c63365bec0eeee8457084a37e690">addSubNode</a> (const char **arrayString, sint32 count, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:adc37c63365bec0eeee8457084a37e690"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入字符串数组子结点  <a href="#adc37c63365bec0eeee8457084a37e690">更多...</a><br /></td></tr>
<tr class="separator:adc37c63365bec0eeee8457084a37e690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9a702ab7b5fe9887e46ca2499ecf199"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#ad9a702ab7b5fe9887e46ca2499ecf199">addSubNode</a> (const int *intArray, sint32 count, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:ad9a702ab7b5fe9887e46ca2499ecf199"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入整型数组子结点  <a href="#ad9a702ab7b5fe9887e46ca2499ecf199">更多...</a><br /></td></tr>
<tr class="separator:ad9a702ab7b5fe9887e46ca2499ecf199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bec39ea19ae6678dc8c33e7bb9c2056"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a9bec39ea19ae6678dc8c33e7bb9c2056">addSubNode</a> (const float *floatArray, sint32 count, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:a9bec39ea19ae6678dc8c33e7bb9c2056"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入float型数组子结点  <a href="#a9bec39ea19ae6678dc8c33e7bb9c2056">更多...</a><br /></td></tr>
<tr class="separator:a9bec39ea19ae6678dc8c33e7bb9c2056"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e781e9785f28de4512d91e21ef9a424"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#a7e781e9785f28de4512d91e21ef9a424">addSubNode</a> (const double *doubleArray, sint32 count, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:a7e781e9785f28de4512d91e21ef9a424"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入double型数组子结点  <a href="#a7e781e9785f28de4512d91e21ef9a424">更多...</a><br /></td></tr>
<tr class="separator:a7e781e9785f28de4512d91e21ef9a424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af22b244d4b131d279678d71b30ba8c75"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_s_o_n_node.html#af22b244d4b131d279678d71b30ba8c75">addSubNode</a> (<a class="el" href="class_j_s_o_n_node.html">JSONNode</a> *object, const std::string nodeName=&quot;&quot;)</td></tr>
<tr class="memdesc:af22b244d4b131d279678d71b30ba8c75"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入JSON对象子结点  <a href="#af22b244d4b131d279678d71b30ba8c75">更多...</a><br /></td></tr>
<tr class="separator:af22b244d4b131d279678d71b30ba8c75"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:af0ba809ecd8e176b8e52899a46368563"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0ba809ecd8e176b8e52899a46368563"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>JSONData</b></td></tr>
<tr class="separator:af0ba809ecd8e176b8e52899a46368563"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>JSON结点类. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a4332edc9aa95b561ddab12f77d000039"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JSONNode::JSONNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JSONNode构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>
<dl class="section note"><dt>注解</dt><dd>JSONNode代表一个用key:value表示的JSON子结点 </dd></dl>

</div>
</div>
<a class="anchor" id="a6c2284bd6ce621636f9ba02d161b4030"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JSONNode::~JSONNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JSONNode析构函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ad1244785c8e153352fb0984acec90744"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JSONNode::JSONNode </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_j_s_o_n_node.html">JSONNode</a> &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JSONNode拷贝构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>
<dl class="section note"><dt>注解</dt><dd>用于值传递用,浅拷贝(不拷贝cJSON里的数据) </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="adb4b70260a7a19410b09458f934dcb5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入NULL子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="ab1bfa7eddb776dd256593680f9c923dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入布尔值子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="a38ade0ebf4d5499778ad60b3e0bad194"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入数字值子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
    <tr><td class="paramname">value</td><td>整数或浮点数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="aee6fa32de551c2f73eeeeddf5a99ee1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入数字值子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
    <tr><td class="paramname">value</td><td>整数或浮点数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="aacf07ddc07c0157aa22433b34a7b60c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入字符串子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="adc37c63365bec0eeee8457084a37e690"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>arrayString</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">sint32&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入字符串数组子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="ad9a702ab7b5fe9887e46ca2499ecf199"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>intArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">sint32&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入整型数组子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="a9bec39ea19ae6678dc8c33e7bb9c2056"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>floatArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">sint32&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入float型数组子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="a7e781e9785f28de4512d91e21ef9a424"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>doubleArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">sint32&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入double型数组子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="af22b244d4b131d279678d71b30ba8c75"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_s_o_n_node.html">JSONNode</a> *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入JSON对象子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>名称字串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>当JSON数据为数组格式时,nodeName可省略 </dd></dl>

</div>
</div>
<a class="anchor" id="a0d11b8b05d71de2597ac4abf08d219a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::boolValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回结点的布尔值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>false or true </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ab0d2ef99e6a84b764708d136e36fbf80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double JSONNode::doubleValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回结点的浮点值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>double </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a7d60d2fd3887f4a2b33ebbdd578aeaa8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sint32 JSONNode::getArraySize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据index获取数组的大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sint32</td><td>index </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回数组结点里的元素(结点)个数 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ae9ace6642be9ee68f1a06586ae2415da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::hasSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否存在nodeName结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>结点名称字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>存在返回true,不存在返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="af3cd36a1709f29078d5aa66b5cf21169"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sint32 JSONNode::intValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回结点的整形值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a53f873c32ad08ed4ded611213a46d448"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::isArrayNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断结点是否是数组型结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>false or true </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a87597bba651e9d48861be2178e37926f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JSONNode::isNullNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断结点是否是NULL结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>false or true </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a9e9e78a2ba11a3fc05120c52ef80aed9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_s_o_n_node.html">JSONNode</a> JSONNode::operator[] </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>nodeName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据结点名称nodeName获取子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeName</td><td>结点名称字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回结点对象 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a32aa55a0478d6efb0a88d9499467ea75"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_s_o_n_node.html">JSONNode</a> JSONNode::operator[] </td>
          <td>(</td>
          <td class="paramtype">sint32&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据index获取数组结点里的元素结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sint32</td><td>index </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回index对应的数组元素 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>数组元素也是一个结点,因为数组里可以包含任意类型的结点 </dd></dl>

</div>
</div>
<a class="anchor" id="a1d5507e362f049c46a8cbaf4cf44a730"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string JSONNode::serialize </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fmt</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回串行化后的字符串 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>fmt 是否格式化 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>结点字符串 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a43a1eb525136c9c101975ff4212acfce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string JSONNode::stringValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回结点的字符串值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回字符串 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>libemb/inc/<a class="el" href="_j_s_o_n_data_8h_source.html">JSONData.h</a></li>
<li>libemb/src/JSONData.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:38 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
